import { Component } from "react";
import { BrowserRouter as Router, Route, Link } from "react-router-dom";

import Home from "./components/home";
import Login from "./components/login";

class App extends Component {
    render () {
        return (
            <Router>
                <Link to='/home'>home</Link>
                <Link to='/login'>login</Link>
                <Route path='/home' component={Home}></Route>
                <Route path='/login' component={Login}></Route>
            </Router>
        )
    }
}

export default App